package com.onejson.ojmall.model.form;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.onejson.ojmall.common.domain.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 菜单表 前端参数表
 *
 * @author wxx
 */
@Data
public class SMenuQueryForm extends PageParam {


    @Schema(description = "关键字")
    private String searchWord;


    @TableId(value = "menu_id")

    @Schema(description = "菜单ID")
    private String menuId;

    @Schema(description = "菜单名称")
    private String menuName;

    @Schema(description = "类型")
    private Integer menuType;

    @Schema(description = "父菜单ID")
    private Long parentId;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "路由地址")
    private String path;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "权限类型")
    private Integer permsType;

    @Schema(description = "后端权限字符串")
    private String apiPerms;

    @Schema(description = "前端权限字符串")
    private String webPerms;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "功能点关联菜单ID")
    private Long contextMenuId;

    @Schema(description = "是否为外链")
    private Integer frameFlag;

    @Schema(description = "外链地址")
    private String frameUrl;

    @Schema(description = "是否缓存")
    private Integer cacheFlag;

    @Schema(description = "显示状态")
    private Integer visibleFlag;

    @Schema(description = "禁用状态")
    private Integer disabledFlag;

    @Schema(description = "删除状态")
    private Integer deletedFlag;

    @Schema(description = "创建人")
    private Long createUserId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Schema(description = "更新人")
    private Long updateUserId;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


}

